From dc93903cd3eddf501550ab5a20f9bee9f1508fc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Tue, 30 May 2017 20:06:20 +0200 Subject: [PATCH] image: Fix snapshot position --- gtk/gtkimage.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gtk/gtkimage.c b/gtk/gtkimage.c index 7479718983..b2c3590b6d 100644 --- a/gtk/gtkimage.c +++ b/gtk/gtkimage.c @@ -1391,15 +1391,13 @@ gtk_image_snapshot (GtkWidget *widget, { GtkImage *image = GTK_IMAGE (widget); GtkImagePrivate *priv = gtk_image_get_instance_private (image); - GtkAllocation allocation; GtkAllocation content_allocation; int x, y, width, height; gint w, h, baseline; - gtk_widget_get_allocation (widget, &allocation); gtk_widget_get_content_allocation (widget, &content_allocation); - x = content_allocation.x - allocation.x; - y = content_allocation.y - allocation.y; + x = 0; + y = 0; width = content_allocation.width; height = content_allocation.height; -- 2.30.2